package com.xxq.gulimall.search.service.impl;

import com.xxq.gulimall.search.entity.BankEntity;
import com.xxq.gulimall.search.repository.BankRepository;
import com.xxq.gulimall.search.service.BankService;
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BankServiceImpl implements BankService {
    @Resource
    private BankRepository bankRepository;
    @Resource
    private ElasticsearchRestTemplate elasticsearchRestTemplate;

    @Override
    public Iterable<BankEntity> findAll() {
        return bankRepository.findAll();
    }

    @Override
    public List<String> groupByAge() {


        return null;
    }
}
